Repository navigation
ci: split Quality into parallel static, unit and sharded e2e jobs - #501
Merged
Merged
Conversation
Quality ran pnpm check serially in ~5 min. Its steps now run as parallel jobs (static checks, unit tests, e2e in three shards), and a job still named Quality needs them all and fails unless each passed or was skipped, so the required check keeps its meaning. merge-pr.sh leaves that summing job out when it decides whether red CI is re-runnable.
…can prove it The fake gh in merge-pr.test.ts ignores -q filters, so a jq filter on the check name broke the fake's matching and no test could prove it. The gate now reads each red check's name and skips Quality itself; the fake models the split CI (one red job plus the Quality check that needs it).
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
.github/workflows/ci.yml: the Quality job ranpnpm checkserially. Its steps now run as parallel jobs:fetch-depth: 0for the comment lint).pnpm run test:unit.pnpm run build && pnpm run build:e2e, thenvitest run --project e2e --tags-filter='!slow' --shard=i/3.fail-fast: false, so one red shard does not hide the others.needsall of the above, runsif: always(), and fails unless every one of them succeeded or was skipped. The required check keeps its meaning..agents/scripts/merge-pr.sh: when it decides whether red CI may be re-run, it skips the Quality check. Quality fails when a job it needs was cancelled, so judging it would call a cancelled job "this PR's to fix". The jobs it needs are checks of their own and are judged directly.src/merge-pr.test.ts: the fakeghnow models the split (one red job plus the Quality check that needs it); the cancelled-job test fails without the skip.docs/internal/agent-rules/toolchain.mdanddocs/internal/DELIVERY.mddescribe the split.pnpm checkis unchanged.ci-failures.mjsneeds no change: it reads--log-failedfor the whole run, which covers every shard.Before
CI run 38355362705 (PR #497): Quality took about 5 min. Static checks about 19 s, unit tests 45 s, then build and the e2e project 228 s, one after another.
After
CI run 38359780444 on this PR, job wall times:
Before: Quality 312 s. After: 124 s. Console (194 s) is now the slowest check.
The shards are close. Shard 3 holds
warm-targets.test.ts(69 s), most of it one test that waits out a fixed 60 s warm-pool retry delay.Review
Spec review: skipped. Code review: 2 blocking, 1 fixed, 1 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rejected:
Rounds: 2. Tokens: n/a.
Written by an agent.